package com.wish.housing.service.impl;

import com.wish.housing.entity.HouseInfo;
import com.wish.housing.entity.RoomInfo;
import com.wish.housing.entity.vo.rk.RackVo;
import com.wish.housing.mapper.HouseInfoMapper;
import com.wish.housing.service.IHouseInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 曹佳林 王泓翔-房源表 	！房态-杨子强 服务实现类
 * </p>
 *
 * @author benjamin
 * @since 2022-03-28
 */
@Service
public class HouseInfoServiceImpl extends ServiceImpl<HouseInfoMapper, HouseInfo> implements IHouseInfoService {

    @Override
    public void updatePublishStatus(String id, Integer publishStatus) {
        getBaseMapper().updatePublishStatus(id, publishStatus);
    }

    @Override
    public List<RackVo> roomRackList(RackVo qv) {
        return getBaseMapper().roomRackList(qv);
    }

    @Override
    public List<RoomInfo> getRoomList(RackVo qv) {
        return getBaseMapper().getRoomList(qv);
    }

}
